<extend name="./base" />
<block name="title">机构列表</block>
<block name="body">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>培训名称</th>
            <th>user</th>
            <th>subject</th>
            <th>grade</th>
            <th>price</th>
            <th>publishtime</th>
            <th>详情</th>
        </tr>
        </thead>
        <tbody>
        <?php
                    foreach($detail as $key => $val){
        ?>
        <tr>
            <th><?php echo $val['course_name'] ?></th>
            <th><?php echo $val['user_id'] ?></th>
            <th><?php echo $val['subject_id'] ?></th>
            <th><?php echo $val['grade_id'] ?></th>
            <th><?php echo $val['price'] ?></th>
            <th><?php echo $val['publishtime'] ?></th>
            <th><a href="">详情</a></th>
        </tr>
        <?php
                    }
                ?>
        </tbody>
    </table>
</block>